/**
 * 认证路由
 * @module routes/authRoutes
 */

const express = require('express');
const router = express.Router();
const authController = require('../controllers/authController');
const { authenticateToken } = require('../middleware/auth');

// 登录
router.post('/login', authController.login);

// 获取当前用户信息 (需要认证)
router.get('/profile', authenticateToken, authController.getProfile);

// 修改密码 (需要认证)
router.post('/change-password', authenticateToken, authController.changePassword);

module.exports = router; 